package com.szl.yeb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.szl.yeb.common.R;
import com.szl.yeb.dto.MenuDto;
import com.szl.yeb.entity.Menu;
import com.szl.yeb.common.PageResult;

import java.util.List;

/**
 * (Menu)表服务接口
 *
 * @author szl
 * @since 2022-08-24 16:21:26
 */
public interface MenuService extends IService<Menu> {

    PageResult getPage(Integer currentPage, Integer size, Menu menu);

    R<Object> getMenusByAdminId();

    List<Menu> getMenusWithRoles();

    List<Menu> getMenusWithChildren();

    List<Integer> getMenusFromRoleId(Integer rid);

    List<Menu> getMenusWithChildrenWithFullData();

    Boolean addMenu(Menu menu);

    Boolean updateMenu(MenuDto menuDto);

    Boolean deleteMenu(Integer id, Integer parentId);
}

